package com.dify.tool.api.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Author: shl
 * @Date: 2024-07-28
 * @Description: 智能体历史记录新增实体
 **/
@Schema(name = "智能体历史记录新增实体", description = "智能体历史记录新增实体")
@Accessors(chain = true)
@Data
public class AgentHistoryRecordAddDTO implements Serializable {

    @Schema(description = "用户id")
    private String userId;

    @Schema(description = "会话id")
    private String sessionId;

    @Schema(description = "消息id")
    private String messageId;

    @Schema(description = "消息类型：1用户输入 2智能体回复 3系统消息")
    private Integer messageType;

    @Schema(description = "消息内容")
    private String messageContent;

    @Schema(description = "1无反馈 2点赞 3差评")
    private Integer isLike;

    @Schema(description = "发送时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date sendTime;
}
